IMotion.GetAxisVelocity 方法

從軸取得目前速度,此速度可為設定速度或實際速度。

命名空間IntervalZero.KINGSTAR.Base.Api

組合: IntervalZero.KINGSTAR.Base.Api (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

語法

C#VB
KsReturn<double> GetAxisVelocity(
       int Index,
       McSource Source
)
Function GetAxisVelocity(
       Index As Integer,
       Source As McSource
) As KsReturn(Of Double)

參數

Index

型別:int

軸索引。索引以 0 為起始;別名將影響此參數。

 

Source

型別:McSource

選擇欲讀取的速度值。

回傳值

型別:KsReturn<double>

回傳一個 KsError 代碼及一個 double 值。

範例

C#
N/A

參見

IMotion 介面

IntervalZero.KINGSTAR.Base.Api 命名空間